#pragma once
#include<functional>
#include<iostream>
using std::cout;
using std::endl;

using task_t = std::function<void(void)>;

void DownLoad()
{
    cout<<"I am a DownTask"<<endl;
}

//任务类，包含各种任务
class Task
{
    Task(int a,int b)
        :_x(a),_y(b)
    {}
    int Add()
    {
        return _x + _y;
    }
private:
    int _x;
    int _y;
};